package tako.wisers.com.android.apis.item;

import android.os.Parcel;
import android.os.Parcelable;

public class TextItem extends BaseItem {

	private String mDate;
	private String mURL;
	private String mPhotoUrl;
	private String mContent;

	public TextItem(Parcel in) {
		mDate = in.readString();
		mURL = in.readString();
		mContent = in.readString();
		mPhotoUrl = in.readString();
		baseReadFromParcel(in, mPhotoUrl != null && mPhotoUrl.length() > 5);
	}

	public TextItem() {
		super();
	}

	public TextItem(String title, String owner, String date, String murl,
			String content, String activity) {
		super();
		mTitle = title;
		mOwner = owner;
		mDate = date;
		mURL = murl;
		mContent = content;
		mActivity = activity;
	}
	
	@Override
	public int describeContents() {
		// TODO Auto-generated method stub
		return 0;
	}
	
	public static final Parcelable.Creator<TextItem> CREATOR =
        new Parcelable.Creator<TextItem>() {
        public TextItem createFromParcel(Parcel in) {
            return new TextItem(in);
        }

        public TextItem[] newArray(int size) {
            return new TextItem[size];
        }
    };

	@Override
	public void writeToParcel(Parcel parcel, int flags) {
		parcel.writeString(mDate);
		parcel.writeString(mURL);
		parcel.writeString(mContent);
		parcel.writeString(mPhotoUrl);
		baseWriteToParcel(parcel, mPhotoUrl != null && mPhotoUrl.length() > 5);
	}
	
	

	public String getPhotoUrl() {
		return mPhotoUrl;
	}

	public void setPhotoUrl(String photoUrl) {
		mPhotoUrl = photoUrl;
	}

	public String getDate() {
		return mDate;
	}

	public void setDate(String date) {
		mDate = date;
	}

	public String getURL() {
		return mURL;
	}

	public void setURL(String murl) {
		mURL = murl;
	}

	public String getContent() {
		return mContent;
	}

	public void setContent(String content) {
		mContent = content;
	}

}
